package com.dragon.modules.yuegou.client.ali.response;

import io.swagger.annotations.ApiModelProperty;

import javax.annotation.Nullable;

public class UserInfo {
    @ApiModelProperty(
            value = "用户的唯一标识，对当前公众号唯一",
            required = true
    )
    private String openid;
    @Nullable
    @ApiModelProperty(
            value = "用户昵称",
            required = false
    )
    private String nickname;
    @Nullable
    @ApiModelProperty(
            value = "用户的性别，值为1时是男性，值为2时是女性，值为0时是未知",
            required = false
    )
    private Integer sex;
    @Nullable
    @ApiModelProperty(
            value = "国家，如中国为CN",
            required = false
    )
    private String country;
    @Nullable
    @ApiModelProperty(
            value = "用户个人资料填写的省份",
            required = false
    )
    private String province;
    @Nullable
    @ApiModelProperty(
            value = "普通用户个人资料填写的城市",
            required = false
    )
    private String city;
    @Nullable
    @ApiModelProperty(
            value = "用户头像，最后一个数值代表正方形头像大小（有0、46、64、96、132数值可选，0代表640*640正方形头像），用户没有头像时该项为空。若用户更换头像，原有头像URL将失效。",
            required = false
    )
    private String headimgurl;
    @Nullable
    @ApiModelProperty(
            value = "只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段。",
            required = false
    )
    private String unionid;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    @Nullable
    public String getNickname() {
        return nickname;
    }

    public void setNickname(@Nullable String nickname) {
        this.nickname = nickname;
    }

    @Nullable
    public Integer getSex() {
        return sex;
    }

    public void setSex(@Nullable Integer sex) {
        this.sex = sex;
    }

    @Nullable
    public String getCountry() {
        return country;
    }

    public void setCountry(@Nullable String country) {
        this.country = country;
    }

    @Nullable
    public String getProvince() {
        return province;
    }

    public void setProvince(@Nullable String province) {
        this.province = province;
    }

    @Nullable
    public String getCity() {
        return city;
    }

    public void setCity(@Nullable String city) {
        this.city = city;
    }

    @Nullable
    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(@Nullable String headimgurl) {
        this.headimgurl = headimgurl;
    }

    @Nullable
    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(@Nullable String unionid) {
        this.unionid = unionid;
    }
}
